<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>修改密码</title>
  <link rel="stylesheet" href="/static/css/layui.css"/>
  <link rel="stylesheet" href="/static/layuiAdmin/css/admin.css"/>
  <link rel="stylesheet" href="/static/layuiAdmin/css/login.css"/>
</head>
<body>

<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
  <div class="layadmin-user-login-main">
    <div class="layadmin-user-login-box layadmin-user-login-header">
      <h2>自助修改LDAP密码</h2>
      <p>欢迎你，亲爱的 <font color="#FFB90F">{{ staff_name }}</font><br/></p>
    </div>

    <div class="layadmin-user-login-box layadmin-user-login-body layui-form">

      <form method="post">
        {% csrf_token %}
        <div class="layui-form-item">
          <p>用户名： <font color="#FFB90F">{{ staff_uid }}</font><br/></p>
        </div>

        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="password" name="pwd1" placeholder="新的密码" class="layui-input" autocomplete="new-password">
        </div>

        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="password" name="pwd2" placeholder="确认密码" class="layui-input" autocomplete="off">
        </div>

        <p style="color: #FFB90F">密码长度至少8位，需同时包含大写字母、小写字母、数字、特殊字符</p><br/>

        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">修 改</button>
          {% if wrongpass %}
            <span><font color="#FF0000">{{ wrongpass }}</font></span>
          {% endif %}
        </div>

        {#        <input type="submit" class="logingBut" value="修改"/><br/>#}

        <!--发送隐藏数据，供后台处理-->
        <input type="hidden" name="dn" value="{{ staff_dn }}">
        <input type="hidden" name="staff_name" value="{{ staff_name }}">
        <input type="hidden" name="unionid" value="{{ unionid }}">
        <input type="hidden" name="staff_uid" value="{{ staff_uid }}">
      </form>


    </div>
  </div>

  <div class="layui-trans layadmin-user-login-footer"></div>

</div>

</body>
</html>

